Vowpal Wabbit
VowpalWabbitRegressor
- Python
- Scala
from synapse.ml.vw import *
vw = (VowpalWabbitRegressor()
.setLabelCol("Y1")
.setFeaturesCol("features")
.setPredictionCol("pred"))
vwRegressor = (VowpalWabbitRegressor()
.setNumPasses(20)
.setPassThroughArgs("--holdout_off --loss_function quantile -q :: -l 0.1"))
import com.microsoft.azure.synapse.ml.vw._
val vw = (new VowpalWabbitRegressor()
.setLabelCol("Y1")
.setFeaturesCol("features")
.setPredictionCol("pred"))
val vwRegressor = (new VowpalWabbitRegressor()
.setNumPasses(20)
.setPassThroughArgs("--holdout_off --loss_function quantile -q :: -l 0.1"))
Python API: VowpalWabbitRegressor | Scala API: VowpalWabbitRegressor | Source: VowpalWabbitRegressor |
VowpalWabbitContextualBandit
- Python
- Scala
from synapse.ml.vw import *
cb = (VowpalWabbitContextualBandit()
.setPassThroughArgs("--cb_explore_adf --epsilon 0.2 --quiet")
.setLabelCol("cost")
.setProbabilityCol("prob")
.setChosenActionCol("chosen_action")
.setSharedCol("shared_features")
.setFeaturesCol("action_features")
.setUseBarrierExecutionMode(False))
import com.microsoft.azure.synapse.ml.vw._
val cb = (new VowpalWabbitContextualBandit()
.setPassThroughArgs("--cb_explore_adf --epsilon 0.2 --quiet")
.setLabelCol("cost")
.setProbabilityCol("prob")
.setChosenActionCol("chosen_action")
.setSharedCol("shared_features")
.setFeaturesCol("action_features")
.setUseBarrierExecutionMode(false))
Python API: VowpalWabbitContextualBandit | Scala API: VowpalWabbitContextualBandit | Source: VowpalWabbitContextualBandit |